package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CharteredRoomMapper;
import com.richest.api.service.ICharteredRoomService;
import com.richest.bean.CharteredRoomBean;

/**
 * 企业包房信息管理服务实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 */
@Service
public class CharteredRoomServiceImpl implements ICharteredRoomService {

	@Autowired
	private CharteredRoomMapper mapper;

	@Override
	public Integer charteredRoomAdd(CharteredRoomBean bean) {
		return mapper.charteredRoomAdd(bean);
	}

	@Override
	public Integer charteredRoomUpdate(CharteredRoomBean bean) {
		return mapper.charteredRoomUpdate(bean);
	}

	@Override
	public Integer charteredRoomDelete(Long id) {
		return mapper.charteredRoomDelete(id);
	}

	@Override
	public CharteredRoomBean charteredRoomSelectOne(Long id) {
		return mapper.charteredRoomSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> charteredRoomSelectMap(Map<String, Object> params) {
		return mapper.charteredRoomSelectMap(params);
	}
}
